package com.example.personalaccount.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "clause")
public class Clause {
    private String id ;
    private long userId ;
    private boolean flag;  // 0为收入 1为支出
    private LocalDateTime timeStamp; // 时间
    private String detail;   // 详情
    private String remark;   // 备注  
    private String func ;   //  方法
    private String originAccount ;  // 源账户 （默认为用户绑定的）
    private String destinationAccount;  // 目的账户
    private double amount;  // 金额
    private boolean status;
}
